import BasePlugin from "@/core/Frame/BaseClass/BasePlugin"
import OpenWidgetCommand from "./OpenWidgetCommand"
import CloseWidgetCommand from "./CloseWidgetCommand"

class WidgetPlugin extends BasePlugin {
  constructor() {
    super()
  }

  // 注册命令
  registerCommands() {
    this.addCommand(OpenWidgetCommand)
    this.addCommand(CloseWidgetCommand)
  }

  // 订阅事件
  registerEvents() { }

  // 接收事件
  handleEvent(eventType: string, args: any) { }
}

export default WidgetPlugin

